package xa.woniu.entity;

import java.io.Serializable;

/**
 * doctor
 * @author 
 */
public class Doctor implements Serializable {
    private Integer did;

    private String dname;

    private Integer dcid;

    private String dsex;

    private String dtitle;

    private String ddesc;

    private String dphoto;

    private static final long serialVersionUID = 1L;

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public String getDname() {
        return dname;
    }

    public void setDname(String dname) {
        this.dname = dname;
    }

    public Integer getDcid() {
        return dcid;
    }

    public void setDcid(Integer dcid) {
        this.dcid = dcid;
    }

    public String getDsex() {
        return dsex;
    }

    public void setDsex(String dsex) {
        this.dsex = dsex;
    }

    public String getDtitle() {
        return dtitle;
    }

    public void setDtitle(String dtitle) {
        this.dtitle = dtitle;
    }

    public String getDdesc() {
        return ddesc;
    }

    public void setDdesc(String ddesc) {
        this.ddesc = ddesc;
    }

    public String getDphoto() {
        return dphoto;
    }

    public void setDphoto(String dphoto) {
        this.dphoto = dphoto;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Doctor other = (Doctor) that;
        return (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()))
            && (this.getDname() == null ? other.getDname() == null : this.getDname().equals(other.getDname()))
            && (this.getDcid() == null ? other.getDcid() == null : this.getDcid().equals(other.getDcid()))
            && (this.getDsex() == null ? other.getDsex() == null : this.getDsex().equals(other.getDsex()))
            && (this.getDtitle() == null ? other.getDtitle() == null : this.getDtitle().equals(other.getDtitle()))
            && (this.getDdesc() == null ? other.getDdesc() == null : this.getDdesc().equals(other.getDdesc()))
            && (this.getDphoto() == null ? other.getDphoto() == null : this.getDphoto().equals(other.getDphoto()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        result = prime * result + ((getDname() == null) ? 0 : getDname().hashCode());
        result = prime * result + ((getDcid() == null) ? 0 : getDcid().hashCode());
        result = prime * result + ((getDsex() == null) ? 0 : getDsex().hashCode());
        result = prime * result + ((getDtitle() == null) ? 0 : getDtitle().hashCode());
        result = prime * result + ((getDdesc() == null) ? 0 : getDdesc().hashCode());
        result = prime * result + ((getDphoto() == null) ? 0 : getDphoto().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", did=").append(did);
        sb.append(", dname=").append(dname);
        sb.append(", dcid=").append(dcid);
        sb.append(", dsex=").append(dsex);
        sb.append(", dtitle=").append(dtitle);
        sb.append(", ddesc=").append(ddesc);
        sb.append(", dphoto=").append(dphoto);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}